package com.chzc.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author CV大魔王
 * @since 2021-05-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OrderInfo对象", description="订单表")
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "商品ID")
    private String goodsId;

    @ApiModelProperty(value = "收货地址")
    private String deliveryAddrId;

    @ApiModelProperty(value = "冗余过来的商品名称")
    private String goodName;

    @ApiModelProperty(value = "商品数量")
    private Integer goodsCount;

    @ApiModelProperty(value = "商品实际支付价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty(value = "商品秒杀原价")
    private BigDecimal goodsOldPrice;

    @ApiModelProperty(value = "商品折扣")
    private String goodsDiscount;

    @ApiModelProperty(value = "1pc , 2android , 3ios")
    private Integer orderChannel;

    @ApiModelProperty(value = "订单状态，0新建未支付，1已支付，2已发货，3已收货，4已退款，5已完成")
    private Integer status;

    @ApiModelProperty(value = "订单的创建时间")
    private Date createDate;

    @ApiModelProperty(value = "支付时间")
    private Date payDate;

    @ApiModelProperty(value = "冗余过来的商品图片")
    private String goodsImg;
}
